/*
 * @Author: your name
 * @Date: 2021-10-18 12:46:41
 * @LastEditTime: 2021-10-18 19:34:11
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \iic_test\iic.h
 */
#ifndef __I2C_H__
#define __I2C_H__
 
#include "stm32f10x.h"
 

void I2C1_Init(void);
void I2C1_Write(u8 addr, u8 data);
u8 I2C1_Read(u8 nAddr);

void I2C2_Init(void);
void I2C2_Write( u8 data);
u8 I2C2_Read(void);
#endif
